home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / clisp < prev    next >
Encoding:
Text File  |  2010-11-16  |  739 b   |  32 lines

  1. # bash brogrammable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3.  
  4. have clisp &&
  5. _clisp()
  6. {
  7.     local cur
  8.  
  9.     COMPREPLY=()
  10.     _get_comp_words_by_ref cur
  11.  
  12.     # completing an option (may or may not be separated by a space)
  13.     if [[ "$cur" == -* ]]; then
  14.     COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
  15.         -M -m -L -N -E -q --quiet --silent -w -I -ansi \
  16.          -traditional -p -C -norc -i -c -l -o -x ' -- "$cur" ) )
  17.     else
  18.         _filedir
  19.     fi
  20.  
  21.     return 0
  22. } &&
  23. complete -F _clisp -o default clisp
  24.  
  25. # Local variables:
  26. # mode: shell-script
  27. # sh-basic-offset: 4
  28. # sh-indent-comment: t
  29. # indent-tabs-mode: nil
  30. # End:
  31. # ex: ts=4 sw=4 et filetype=sh
  32.